<%@ page contentType="text/html; charset=UTF-8" %>
<%@ page pageEncoding="UTF-8" %>
<%@ taglib uri="/struts-tags" prefix="s" %>
<script type="text/javascript" src="${contextPath}/static/script/syntaxhighlighter/scripts/shCore.js"></script>
<script type="text/javascript" src="${contextPath}/static/script/syntaxhighlighter/scripts/shBrushXml.js"></script>
<link type="text/css" rel="stylesheet" href="${contextPath}/static/script/syntaxhighlighter/styles/shCoreEmacs.css"/>
<script type="text/javascript">
    $(document).ready(function () {
        SyntaxHighlighter.all();
    });
</script>

<div class="tab_menu clearfix">
    <ul class="tab">
        <li>Request Log View Detail</li>
    </ul>
</div>
<div class="main">
    <input type="button" value="Back" class="common_button" onclick="javascript:history.go(-1);">

    <s:if test="transactionLog!=null">
        <s:if test="transactionDetails!=null">
            <s:iterator value="transactionDetails">
                <ul>
                    <li class="write_info clearfix">
                        <ol>
                            <li><label>${direction}:</label>

                                <div class="field">
                                    <pre class="brush: xml;toolbar: false;"><s:property value="detail"
                                                                                        escape="true"/></pre>
                                </div>
                            </li>
                        </ol>
                    </li>
                </ul>
                <input type="button" value="Back" class="common_button" onclick="javascript:history.go(-1);">
            </s:iterator>
            <ul>
                <li class="write_info clearfix">
                    <ol>
                        <li><label>Exception:</label>

                            <div class="field">
                                <pre class="brush: xml;toolbar: false;">${transactionLog.exception}</pre>
                            </div>
                        </li>
                    </ol>
                </li>
            </ul>
            <input type="button" value="Back" class="common_button" onclick="javascript:history.go(-1);">
        </s:if>
    </s:if>
    <s:if test="reservationLog!=null">
        <s:iterator value="reservationLog.reservationDetails">
            <ul>
                <li class="write_info clearfix">
                    <ol>
                        <li><label>${direction}:</label>

                            <div class="field">
                                <pre class="brush: xml;toolbar: false;"><s:property value="detail" escape="true"/></pre>
                            </div>
                        </li>
                    </ol>
                </li>
            </ul>
            <input type="button" value="Back" class="common_button" onclick="javascript:history.go(-1);">
        </s:iterator>
        <ul>
            <li class="write_info clearfix">
                <ol>
                    <li><label>Exception:</label>

                        <div class="field">
                            <pre class="brush: xml;toolbar: false;">${reservationLog.exception}</pre>
                        </div>
                    </li>
                </ol>
            </li>
        </ul>
        <input type="button" value="Back" class="common_button" onclick="javascript:history.go(-1);">
    </s:if>
</div>
